﻿<!doctype html>
<html>
<head>
<#include "/part_meta.ftl">
<title>商品编辑-迈小众</title>
<link href="${st.resDomain}/css/style.css" rel="stylesheet">
<link href="${st.resDomain}/css/form-base.css" rel="stylesheet">
<link href="${st.resDomain}/css/MC-base.css" rel="stylesheet">
<link href="${st.resDomain}/css/MC.css" rel="stylesheet">
</head>

<body>
<!--- header --->
<div id="header">
  <div class="main f_clear">
  	<div class="logo"><h2><@shiro.principal property="c_name"/></h2><span>您好！<@shiro.principal property="m_name" />， <a href="${st.domain}/member/logoutDo">退出</a></span></div>
    <div class="f_right"><a href="${st.userDomain}">个人中心</a> <@shiro.hasRole name="SHOP"><a href="${st.shopDomain}">店铺管理</a></@shiro.hasRole><a href="${st.firmDomain}" class="selected">企业管理</a></div>
  </div>
</div>
<!--- header end--->
<!--topnav -->
<div id="topnav">
  <div class="main">
    <ul class="left">
      
      <li class="selected"><a href="${st.firmDomain}/goods/list">商品</a></li>
      <li><a href="${st.firmDomain}/store/list">店铺</a></li>
      <li><a href="${st.firmDomain}/memberVip/list">会员</a></li>
      <li><a href="${st.firmDomain}/company/edit">企业</a></li>
      <li><a href="${st.firmDomain}/goodsReport">数据</a></li>
    </ul>
  </div>
</div>
<!--topnav end-->
<div id="main" class="f_clear">
  <div id="left">
    <ul id="menu1">
      <li class="selected"><a href="${st.firmDomain}/goods/list">商品库</a></li>
	  <li><a href="${st.firmDomain}/goodsClassify/list">商品类目</a></li>
    </ul>
  </div>
  <div id="right">
    <div id="title">商品库 - <#if barCode??>商品编辑<#else>商品添加</#if> <span class="f_right"><a href="${st.firmDomain}/goods/addOrEdit" class="btn2">添加商品</a></span></div>
    <div id="tjsp">
    <div id="hideData" style="display:none">
    {"companyId": "${companyId}"}
    </div>
    <form id="goodsForm" autocomplete="off">
      <div class="form val">
      	<p style="display:none;">
      		<input type="hidden" id="goodsId" name="goodsId">
      	</p>
        <div id="barCode4Add" style="display:none;">
        <p>
          <label>商品编码：<em>*</em></label>
          <input id="barCode" name="barCode" type="text" value="${barCode}"/>
        </p>
        <p class="zs">
            请扫入产品条码（13位数字），也可自定义编码，其中打秤类编码请输入5位数字，其它6~10位数字<br>
            点击生成<a href="javascript:;" id="genCodeBt" style="text-decoration: underline;color: #0A8FDF;margin-left: 5px;">打秤编码</a>
            或者<a href="javascript:;" id="genCodeOtherBt" style="text-decoration: underline;color: #0A8FDF;margin-left: 5px;">其它编码</a>
        </p>
        </div>
        <p id="barCode4Edit" style="display:none;">
          <label>商品编码：</label>
          ${barCode}
        </p>
        <p>
          <label>商品名称：<em>*</em></label>
          <input name="name" type="text"/>
        </p>
        <p>
          <label>标题：<em>*</em></label>
          <input name="title" type="text" />
        </p>
        <p>
          <label>副标题：</label>
          <input name="subTitle" type="text" />
        </p>
        <p>
          <label>关键字：<em>*</em></label>
          <input name="keywords" type="text" />
        </p>
        <p class="zs">
          多个关键字用空格隔开
        </p>
        <p class="xldx">
          <label>系统类目：<em>*</em></label>
          <span id="selectCats" style="float:none;display:inline-block;"></span>
          <input type="text" id="catId" name="category.catId" style="width:0px;height:0px;padding:0px;border: 0px;">
          <input type="hidden" id="categoryPath" name="categoryPath">
        </p>
        <p class="xldx">
          <label>企业类目：<em>*</em></label>
          <span id="selectClassify" style="float:none;display:inline-block;"></span>
          <input type="text" id="classifyId" name="goodsClassify.classifyId" style="width:0px;height:0px;padding:0px;border: 0px;">
        </p>
        <p class="s">
          <label>计费单位：<em>*</em></label>
          <input id="unit" name="unit" type="text" /><span id="unitMsg" style="display:inherit;"></span>
          <label>价格：<em>*</em></label>
          <input name="price" type="text" maxlength="10"/><span>￥/<i id="unitFPrice"></i></span><span id="priceMsg" style="display:inherit;"></span>
          <label>出售单位：</label>
          <input id="sellUnit" name="sellUnit" type="text" maxlength="10"/><span id="sellUnitMsg" style="display:inherit;"></span>
          <span id="convertContent" style="display:none;">
          <label>折算：</label>
          <input id="unitConvert" name="unitConvert" type="text" maxlength="10"/><span><i id="unitFConvert"></i>/<i id="sellUnitFConvert"></i></span><span id="unitConvertMsg" style="display:inherit;"></span>
          </span>
        </p>
        <p class="zs">
          	以下参数以‘ <span id="sellUnitFText" style="display: inline-block;float: none;padding: 0px;"></span> ’为单位
        </p>
        <p class="s">
          <label>底存：<em>*</em></label>
          <input id="stockEnd" name="stockEnd" type="text" maxlength="10"/><span id="stockEndMsg" style="display:inherit;"></span>
          <label>最小出售量：<em>*</em></label>
          <input name="sellMin" type="text" maxlength="10"/><span id="sellMinMsg" style="display:inherit;"></span>
          <label>默认出售量：<em>*</em></label>
          <input name="sellDef" type="text" maxlength="10"/><span id="sellDefMsg" style="display:inherit;"></span>
          <label>出售量幅度：<em>*</em></label>
          <input name="sellExt" type="text" maxlength="10"/>
        </p>
        <p class="pic">
          <label>默认图片：<em>*</em></label>
          <span class="f_clear">
            <input id="pic" name="pic" type="hidden" value="${goods.pic}">
            <img id="imgPrev" src="${st.resDomain}/images/goods_def.jpg" <#if goods.pic?? >data="${goods.pic}"</#if> class="atta" style="width:200px;height:150px;">
          </span>
          <span>
            <a href="javascript:;" id="picFileBt" class="btn2">企业图库</a>
            <span style="clear:both;float:left;">建议宽高比4:3，最小宽度100px</span>
          </span>
        </p>
        <p>
          <label>商品介绍：<em>*</em></label>
          <textarea name="descrDef" cols="" rows="" style="width:630px"></textarea>
        </p>
        <p id="syncFieldsItem" style="display:none;">
          <label>同步店铺商品：</label>
          <span id="syncFieldsContainer" style="width: 600px;"></span>
          <input type="hidden" id="sync" name="sync">
        </p>
      </div>
      <div class="Submit f_clear val">
      	<input type="submit" id="submitBt_0" onclick="return false;" class="feignhide"><!-- 实现回车提交 -->
      	<a id="submitBt_1" class="btn1"><i></i><em>保存</em></a><a href="${st.firmDomain}/goods/list" class="btn1b"><i></i><em>返回</em></a></div>
    </form>
    </div>
  </div>
</div>
<!--footer-->
<div id="footer">Copyright© 迈小众 <span style="padding-left:30px;">客服QQ：<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=3101084438&site=qq&menu=yes" rel="nofollow"><img border="0" src="http://wpa.qq.com/pa?p=2:3101084438:50" alt="点击联系我们，QQ：3101084438" title="点击联系我们，QQ：3101084438"></a></span></div>
<!--footer end-->
<script data-main="${st.resDomain}/scripts/firm/goods_addOrEdit" src="${st.resDomain}/scripts/require.js"></script>
</body>
</html>
